<template>
  <view class="list-left">
    <view class="author"> @ {{ video.author }}</view>
    <view class="left-desc">{{ video.desc }}</view>
    <view class="music" v-if="video.music">
      <!-- <MusicIcon /> -->
      <i class="iconfont icon-music icon-box-music-view"></i>
      <view class="music-box">
        <text class="music-text"> {{ video.music }}</text>
      </view>
    </view>
  </view>
</template>

<script>
  export default {
    name: "videoLeft",
    props: {
      video: {
        type: Object,
        default: () => ({
          author: "",
          title: "",
          desc: "",
          music: "",
          date: "",
          id: 0,
          src: "",
        }),
      },
    },
    components: {},
    data() {
      return {};
    },
    mounted() {},
  };
</script>

<style>
  .icon-box-music-view {
    width: 14px;
    height: 14px;
    font-size: 15px;
  }
  .list-left {
    height: 80px;
    margin-left: 10px;
    color: #ffffff;
    z-index: 100;
  }
  .author {
    height: 35px;
    line-height: 35px;
    font-size: 17px;
  }
  .title {
    height: 20px;
    line-height: 20px;
    font-size: 14px;
  }
  .desc {
    font-size: 14px;
  }
  .music {
    display: flex;
    flex-direction: row;
    margin-top: 5px;
    height: 20px;
    line-height: 20px;
    font-size: 12px;
    vertical-align: middle;
  }
  .music-box {
    width: 120px;
    overflow: hidden;
    vertical-align: middle;
    position: relative;
  }
  .music-text {
    display: inline-block;
    white-space: nowrap;
    padding-left: 100%;
    animation: music 10s linear infinite;
  }
  @keyframes music {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(-100%);
    }
  }
  .el-icon-music {
    width: 24px;
    height: 24px;
    size: 24px;
  }
</style>
